﻿namespace ImageManager.MyType
{

        public class MyTableNameAttribute : Attribute
        {
            public string TableName { get; set; }
            public MyTableNameAttribute(string name)
            {
                this.TableName = name;
            }
        }
        public class MyIgnoreColumnAttribute : Attribute
        {
        }
        public class MyIgnoreCompareColumnAttribute : Attribute
        {
        }
        public class MyTypeAttribute : Attribute
        {
        }
    public class MyForeignAttribute : Attribute
    {
        public MyForeignAttribute(Type type, string labelProp)
        {
            this.LabelProp = labelProp;
            this.RefType = type;
        }
        public MyForeignAttribute(Type type, string labelProp, string labelProp2)
        {
            this.LabelProp = labelProp;
            this.LabelProp2 = labelProp2;
            this.RefType = type;
        }
        public MyForeignAttribute(Type type)
        {
            this.RefType = type;
        }
        public string LabelProp { get; set; }
        public string LabelProp2 { get; set; }
        public Type RefType { get; set; }
    }
    public class MyReadonlyAttribute : Attribute { }
    public class MyUniqueAttribute : Attribute { }
}

